package com.echronos.thirdsync.mq.AutoCount.message;

import lombok.Data;

/**
 * @Author wangyadong
 * @Date 2025/8/12 15:20
 * @ClassName AutoCountBaseMessage
 */
@Data
public class AutoCountBaseMessage<T> {
    /**
     * 消息唯一标识
     */
    private String messageId;

    /**
     * 数据归属公司id
     */
    private Integer companyId;
    /**
     * 操作枚举：Create、Update、Cancel
     */
    private String operationType;
    /**
     * 业务枚举例如：Debtor、Creditor
     */
    private String dataType;
    /**
     * 泛型：业务实体（Product/Customer/Supplier）
     */
    private T data;
    /**
     * 时间戳
     */
    private Long timestamp;
}
